
 /* eslint-disable */ 
import http from '@/libs/httpRequest'

/**获取个人资产 */
export const getMyAssetsListApiFn = params => { return http.getApi({url: `/isvpc/Receice/myAsset`,params})}
/*报修*/
export const repairsAssetsApiFn = data => {return http.postApi({url: `/isvpc/Repair/addRepair`,data})}
/*转移*/
export const transferAssetsApiFn = data => {return http.postApi({url: `/isvpc/Transfer/addTransfer`,data})}
/*退还*/
export const sendBackAssetsApiFn = data => {return http.postApi({url: `/isvpc/Eeturn/addReturn`,data})}
/*报失*/
export const disposeAssetsApiFn = data => {return http.postApi({url: `/isvpc/Loss/addLoss`,data})}


// 领用记录
export const getReceiveRecord = params => { return http.getApi({url:`/isvpc/Receice/myAssetRecord`,params})}


// 转移记录
export const getTransferRecord = params => { return http.getApi({url:`/isvpc/Transfer/myTransferRecord`,params})}
/*撤销*/
export const revokeTransfer = data => {return http.postApi({url: `/isvpc/Transfer/revokeTransfer`,data})}
/*资产转移确认*/
export const confirmTransfer = data => {return http.postApi({url: `/isvpc/Transfer/confirmTransfer`,data})}


// 报修记录
export const getRepairsRecord = params => { return http.getApi({url:`/isvpc/Repair/myRepairRecord`,params})}
/**获取资产报修信息 */
export const getRepairsInfoApiFn = params => { return http.getApi({url: `/isvpc/Repair/repairInfo`,params})}
/*报修记录编辑保存*/
export const editRepair = data => {return http.postApi({url: `/isvpc/Repair/saveRepair`,data})}
/*撤销*/
export const revokeRepair = data => {return http.postApi({url: `/isvpc/Repair/revokeRepair`,data})}
/*删除*/
export const removeRepair = data => {return http.postApi({url: `/isvpc/Repair/remove`,data})}



// 退还记录
export const getSendBackRecord = params => { return http.getApi({url:`/isvpc/Eeturn/myReturnRecord`,params})}
/*撤销*/
export const revokeReturn = data => {return http.postApi({url: `/isvpc/Eeturn/revokeReturn`,data})}
/*资产退还记录删除*/
export const removeReturn = data => {return http.postApi({url: `/isvpc/Eeturn/removeReturn`,data})}


// 报失记录
export const getMyLossRecord = params => { return http.getApi({url:`/isvpc/Loss/myLossRecord`,params})}
/*撤销*/
export const revokeLoss = data => {return http.postApi({url: `/isvpc/Loss/revokeLoss`,data})}
/*资产报失记录删除*/
export const removeLoss = data => {return http.postApi({url: `/isvpc/Loss/removeLoss`,data})}


/***********************部门资产********************************************************************** */

/**获取部门资产 */
export const getDeptAssetListApiFn = params => { return http.getApi({url: `/isvpc/Receice/deptAsset`,params})}


// 领用记录
export const getDeptReceiveRecord = params => { return http.getApi({url:`/isvpc/Receice/deptAssetRecord`,params})}

// 报修记录
export const getDeptRepairsRecord = params => { return http.getApi({url:`/isvpc/Repair/deptRepairRecord`,params})}

// 转移记录
export const getDeptTransferRecord = params => { return http.getApi({url:`/isvpc/Transfer/deptTransferRecord`,params})}

// 退还记录
export const getDeptSendBackRecord = params => { return http.getApi({url:`/isvpc/Eeturn/deptReturnRecord`,params})}

// 报失记录
export const getDeptMyLossRecord = params => { return http.getApi({url:`/isvpc/Loss/deptLossRecord`,params})}



// 部门资产统计 + 部门个人资产
export const getDeptData = params => { return http.getApi({url:`/isvpc/ReportForm/deptIndex`,params})}
// 个人使用资产排行榜
export const getDeptUserCount = params => { return http.getApi({url:`/isvpc/ReportForm/deptUserCount`,params})}
// 个人资产报表
export const getUserAsset = params => { return http.getApi({url:`/isvpc/ReportForm/userAsset`,params})}


